package cn.dkk.structure_design.adapter.object_adapter;

import cn.dkk.structure_design.adapter.pojo.Computer;
import cn.dkk.structure_design.adapter.pojo.TFCardImpl;

/**
 * @author dkk
 * @date 2022/7/10
 * @desc
 */
public class Test {
    public static void main(String[] args) {
        TFCardImpl tfCard = new TFCardImpl();
        tfCard.TFWrite("TF卡中的数据");
        CDAdAdapterTF cdAdAdapterTF = new CDAdAdapterTF(tfCard);
        Computer computer = new Computer();
        System.out.println(computer.readSDCard(cdAdAdapterTF));
    }
}
